package com.huoyun.tag;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.components.UIBean;

import com.huoyun.base.bean.NodeInfo;
import com.huoyun.base.bean.Region;
import com.opensymphony.xwork2.util.ValueStack;

public class RegionSelectBean extends UIBean {

	/**
	 * 省份选择框的名称
	 */
	private String provinceName;
	
	private String provinceId;
	
	/**
	 * 省份的默认值
	 */
	private String provinceValue;
	
	/**
	 * 城市选择框的名称
	 */
	private String cityName;
	
	private String cityId;
	
	/**
	 * 城市的默认值
	 */
	private String cityValue;
	
	/**
	 * 城镇选择框的名称
	 */
	private String townName;
	
	private String townId;
	
	/**
	 * 城镇的默认值
	 */
	private String townValue;
	
	/**
	 * 类型：view表示直接展示省市区名称，没有下拉选择框，select表示下拉选择框显示，默认为下拉选择框
	 */
	private String type;
	
	private List<Region> provinces;
	
	private List<Region> citys;
	
	private List<Region> towns;
	
	public RegionSelectBean(ValueStack stack, HttpServletRequest request,
			HttpServletResponse response) 
	{
		super(stack, request, response);
	}

	@Override
	protected String getDefaultTemplate() {
		return "regionSelect";
	}

	public String getProvinceName() {
		return provinceName;
	}

	public void setProvinceName(String provinceName) {
		this.provinceName = provinceName;
	}

	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}

	public String getTownName() {
		return townName;
	}

	public void setTownName(String townName) {
		this.townName = townName;
	}

	public List<Region> getProvinces() {
		return provinces;
	}

	public void setProvinces(List<Region> provinces) {
		this.provinces = provinces;
	}

	public String getProvinceValue() {
		return provinceValue;
	}

	public void setProvinceValue(String provinceValue) {
		this.provinceValue = provinceValue;
	}

	public String getCityValue() {
		return cityValue;
	}

	public void setCityValue(String cityValue) {
		this.cityValue = cityValue;
	}

	public String getTownValue() {
		return townValue;
	}

	public void setTownValue(String townValue) {
		this.townValue = townValue;
	}

	public List<Region> getCitys() {
		return citys;
	}

	public void setCitys(List<Region> citys) {
		this.citys = citys;
	}

	public List<Region> getTowns() {
		return towns;
	}

	public void setTowns(List<Region> towns) {
		this.towns = towns;
	}

	public String getProvinceId() {
		return provinceId;
	}

	public void setProvinceId(String provinceId) {
		this.provinceId = provinceId;
	}

	public String getCityId() {
		return cityId;
	}

	public void setCityId(String cityId) {
		this.cityId = cityId;
	}

	public String getTownId() {
		return townId;
	}

	public void setTownId(String townId) {
		this.townId = townId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

}
